package cn.edu.paisi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author en.edu.paisi
 * @since 2021-03-05
 */
public class Subject extends Model<Subject> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sub_id", type = IdType.AUTO)
    private Integer subId;

    private String subName;

    private String subMain;

    private String subAnswer;
    
    private Integer testId;
  


    public Integer getSubId() {
        return subId;
    }

    public void setSubId(Integer subId) {
        this.subId = subId;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public String getSubMain() {
        return subMain;
    }

    public void setSubMain(String subMain) {
        this.subMain = subMain;
    }

    public String getSubAnswer() {
        return subAnswer;
    }

    public void setSubAnswer(String subAnswer) {
        this.subAnswer = subAnswer;
    }
    

   

	public Integer getTestId() {
		return testId;
	}

	public void setTestId(Integer testId) {
		this.testId = testId;
	}

	@Override
    protected Serializable pkVal() {
        return this.subId;
    }

	@Override
	public String toString() {
		return "Subject [subId=" + subId + ", subName=" + subName + ", subMain=" + subMain + ", subAnswer=" + subAnswer
				+ ", textId=" + testId + "]";
	}

	
	

   
}
